package com.ktjiaoyu.crm.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ktjiaoyu.crm.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 分页查询
     * @param page
     * @param params
     * @return
     */
    IPage<User> getUsersByPage(IPage<User> page,
                               @Param("param") Map<String,Object> params);

    /**
     * 根据用户名查询用户信息
     * @param usrName
     * @return
     */
    public User getUserByUsrName(@Param("usrName") String usrName);
}
